//      main.c
//
//      Copyright 2011 richard <richard@desktop>
//
//      This program is free software; you can redistribute it and/or modify
//      it under the terms of the GNU General Public License as published by
//      the Free Software Foundation; either version 2 of the License, or
//      (at your option) any later version.
//
//      This program is distributed in the hope that it will be useful,
//      but WITHOUT ANY WARRANTY; without even the implied warranty of
//      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//      GNU General Public License for more details.
//
//      You should have received a copy of the GNU General Public License
//      along with this program; if not, write to the Free Software
//      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
//      MA 02110-1301, USA.

#ifndef __RICHARDS_COMMON_STUFF__H_
#define __RICHARDS_COMMON_STUFF__H_

#define F_CPU 1000000UL

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>

#include <util/delay.h>

//Define some types that I know the sizes off, debugged them at runtime to make sure.
typedef char s8;
typedef unsigned char u8;

typedef short s16;
typedef unsigned short u16;

typedef long int s32;
typedef unsigned long u32;

typedef long long s64;
typedef unsigned long long u64;


//Reliable delay func.
void delay_ms(u16 ms);

/*
 * Turns all hardware off on the dev board that I am using.
 */
void AllOff();

#endif //#ifndef __RICHARDS_COMMON_STUFF__H_

